Answer [NoofRings]
Answers the call after specified number of rings.
Parameters
<NoofRings>
Number of rings after which the call is picked up. If not specified, it defaults to 2 rings.
Remarks
- Answer 0 will pick up the call immediately without waiting for a ring.
- To perform processing while waiting for a call, check for $Ring greater than 0 before Answer.
- Some voice hardwares will not give accurate number of rings. So the parameter NoofRings will not be accurate in all cases. In analog lines, the caller ID is transmitted before the first ring or before the second ring. So it is always better to pickup the call after the third ring in analog environment.
Example
MAIN:
Answer 3
Play "Welcome.wav"
$num = Input(5)
Play "YouEntered.wav"
Play Num2Wav($num)
Hangup
goto MAIN